import React from 'react'

import { Form, Switch, Button, Input } from 'antd'
export default () => {
    return (

        <Form
            labelCol={{ span: 3 }}
            wrapperCol={{ span: 15 }}
            initialValues={{ enable: true }}
        >
            <Form.Item label="SMTP服务器" name="smtp_host" >
                <Input />
            </Form.Item>
            <Form.Item label="SMTP端口" name="smtp_port" >
                <Input />
            </Form.Item>
            <Form.Item label="发信人邮件地址" name="sender_email_address" >
                <Input />
            </Form.Item>
            <Form.Item label="身份验证用户名" name="identity_verify_username" help="SMTP身份验证用户名">
                <Input />
            </Form.Item>
            <Form.Item label="身份验证码" name="identity_verify_code" help="SMTP身份验证码">
                <Input />
            </Form.Item>

            <Form.Item label="是否启用" name="enable" valuePropName="checked">
                <Switch />
            </Form.Item>
            <Form.Item label="邮件地址" name="email_address" >
                <Input />
            </Form.Item>

            <Form.Item wrapperCol={{ offset: 3 }}>
                <Button type="primary">保存</Button>
            </Form.Item>
        </Form>

    )
}